package com.gxa.hystrix.interfaces;

import com.gxa.hystrix.pojo.TeSeChuFang;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author thinknovo
 * @version 1.0
 * @description guahaobychek.java
 * @date 2021/3/25 15:36
 */
@FeignClient(value = "EUREKA-CLIENT-GONGZUOZHAN")
public interface TeSeChuFangByCheck {


    @RequestMapping(value = "/teSeChuFang/chaXunAll",method = RequestMethod.GET,
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    Map chaXunAll(@RequestParam(value = "zhuHe") int zhuHe);

    @RequestMapping(value = "/teSeChuFang/xinZeng",method = RequestMethod.POST,
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    Map xinZeng(@RequestBody TeSeChuFang teSeChuFang);


}
